//
// Created by hi on 25-5-20.
//函数返回值为指针

#include <stdio.h>
//指针作为参数
void mySwap(int*a,int*b) {
   const int temp=*b;
    *b = *a;
    *a = temp;
}

int main() {
    int a = 1;
    int b = 2;
    mySwap(&a,&b);
    printf("a=%d,b=%d\n",a,b);
}